<?php

// 订单表

namespace app\shop\model;

use think\Model;

class MemberOrder extends Model
{
    // 订单 订单附属表 关联
    public function MemberOrderAttached()
    {
        return $this->hasMany('MemberOrderAttached','order_id','id')->field('title,price,thumb_img,order_id,goods_id');
    }
}